package com.example.mapper;

import com.example.dto.LifePageDto;
import com.example.entity.LifePlace;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LifePlaceMapper {
    Page<LifePlace> findByDno(LifePageDto lifePageDto);

    void add(LifePlace lifePlace);
    @Delete("delete from lifeplace where dno = #{dno}")
    void deleteByDno(String dno);

    void update(LifePlace lifePlace);
}
